package com.foodost.idiomer;

public class Idiom {
    
    private char word1;
    private char word2;
    private char word3;
    private char word4;
    public Idiom(String idiom){
        if(idiom != null && idiom.trim().length() == 4){
            char [] words = idiom.toCharArray();
            setWord1(words[0]);
            setWord2(words[1]);
            setWord3(words[2]);
            setWord4(words[3]);
        }
    }
    public char getWord1() {
        return word1;
    }
    public void setWord1(char word1) {
        this.word1 = word1;
    }
    public char getWord2() {
        return word2;
    }
    public void setWord2(char word2) {
        this.word2 = word2;
    }
    public char getWord3() {
        return word3;
    }
    public void setWord3(char word3) {
        this.word3 = word3;
    }
    public char getWord4() {
        return word4;
    }
    public void setWord4(char word4) {
        this.word4 = word4;
    }
    
    public boolean hasData(){
        if(word1 == '\u0000' || word2 == '\u0000' || word3 == '\u0000' || word4 == '\u0000'){
            return false;
        }
        return true;
    }
    

}
